import tcdIO.Terminal;


	class SentenceProgram {

	public static void main(String[] args) {

		Terminal terminal1;
		Sentence sentence1;
		int[] totals;
		
		totals = new int[26];
		
		terminal1 = new Terminal("Sentence Program");
		
		sentence1 = new Sentence(terminal1.readString("Enter String: "));
		
		int i = 0;
		while (i <= (sentence1.length() - 1)){
			if (sentence1.charAt(i) >= 'a' && sentence1.charAt(i) <= 'z'){
			totals['z' - sentence1.charAt(i)]  = totals['z' - sentence1.charAt(i)] + 1;
			}
			else if (sentence1.charAt(i) >= 'A' && sentence1.charAt(i) <= 'Z'){
				totals['Z' - sentence1.charAt(i)]  = totals['Z' - sentence1.charAt(i)] + 1;
			}
			
			i = i + 1;
		}
		
		i = 25;
		while (i >= 0){
			terminal1.println("" + (char)('z' - i) + " = " + totals[i]);
			i = i - 1;
		}
	}

}
